<template>
    <div class="download-page">
      <h1>APP 下载</h1>
      <div class="apk-grid">
        <div class="apk-item">
          <a :href="customerManagementApk" download="客户管理系统.apk">
            <button class="download-button">下载 外呼app</button>
          </a>
        </div>
        <div class="apk-item">
          <a :href="faceSignAppApk" download="面签工具app-v3.apk">
            <button class="download-button">下载 视频面签app</button>
          </a>
        </div>
      </div>
    </div>
  </template>
  
  <script>
  export default {
    data() {
      return {
        customerManagementApk: process.env.BASE_URL + "apk/客户管理系统.apk",
        faceSignAppApk: process.env.BASE_URL + "apk/面签工具app-v3.apk",
      };
    }
  };
  </script>
  
  <style scoped>
  .download-page {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #343a40;
  }
  
  .apk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
    width: 100%;
    max-width: 600px;
  }
  
  .apk-item {
    text-align: center;
  }
  
  .download-button {
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .download-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
  }
  
  .download-button:active {
    transform: translateY(0);
  }
  </style>